package cn.itcast.consumer.feign;

import cn.itcast.consumer.domain.Goods;
import org.springframework.stereotype.Component;

@Component
public class GoodsFeignClientFallback implements GoodsFeign{
    @Override
    public Goods findById(int id) {
        Goods goods = new Goods();
        goods.setId(-2);
        goods.setTitle("调用方降级");
        goods.setPrice(999999);
        return goods;
    }
}
